Skip to content

Add PostgreSQL backend scaffolding#428

Draft
adamziel wants to merge 128 commits into
WordPress:trunkfrom
adamziel:codex/postgresql-backend
Draft

Add PostgreSQL backend scaffolding#428
adamziel wants to merge 128 commits into
WordPress:trunkfrom
adamziel:codex/postgresql-backend

Conversation

@adamziel

@adamziel adamziel commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR adds PostgreSQL backend support to the SQLite Database Integration test infrastructure and makes the full WordPress PHPUnit suite practical to run in CI.

Passes the full WordPress unit test suite.

Validation

This was validated with package-level PostgreSQL PHPUnit coverage, focused WordPress PostgreSQL regressions, repeated full unfiltered local WordPress PostgreSQL runs, code review on the performance-sensitive paths, and final hosted GitHub Actions verification.

WordPress PHPUnit: SQLite 24,648 passed; PostgreSQL 24,628 passed
[####################] 100%

adamziel added 30 commits June 9, 2026 16:32
Snapshot captured at 2026-06-09 19:58:20 UTC.
Snapshot captured at 2026-06-09 19:59:24 UTC.
Snapshot captured at 2026-06-09 20:01:29 UTC.
Snapshot captured at 2026-06-09 20:02:33 UTC.
Snapshot captured at 2026-06-09 20:03:37 UTC.
Snapshot captured at 2026-06-09 20:04:41 UTC.
adamziel added 30 commits June 14, 2026 02:04
Support MySQL SHOW COLLATION and SHOW DATABASES/SCHEMAS in the PostgreSQL driver using tokenized statement parsing and static MySQL-shaped result rows.
Add MySQL-compatible savepoint handling, including fail-closed handling for unsupported savepoint syntax before raw backend execution.

Add scoped PostgreSQL TRUNCATE support and main database-qualified simple table targets.

Keep unsupported extra-qualified CREATE TABLE targets fail-closed before DDL translation.
Add standalone CREATE/DROP INDEX support, including fail-closed handling for unsupported forms.

Support main database-qualified DROP TABLE and database qualifiers for SHOW TABLES and SHOW INDEX/INDEXES/KEYS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant